package net.chrisrichardson.cloudtools.maven.plugins;

import net.chrisrichardson.ec2deployer.cluster.ClusterManager;
import net.chrisrichardson.ec2deployer.cluster.SimpleCluster;

/**
 * Create a snapshot of the database EBS volume
 * @goal createsnapshot
 * @author cer
 *
 */
public class CreateSnapshotMojo extends AbstractClusterMojo {

  @Override
  protected void executeWithCluster(ClusterManager manager, SimpleCluster cluster) {
    String snapshotId = cluster.getClusterInstance().getDatabaseTier().snapshotDatabase();
    System.out.println("Snapshot id: " + snapshotId);
  }

}
